
// ``````````````````````````````````````````````````````````````````````````````````````````````````````````
// ````````````````````````````````````自动读取文件列表，做成路由列表``````````````````````````````````````````
// const fileList = import.meta.glob('../views/menuPage/**/index.jsx');
// const menuFileList = [];
// Object.values(fileList).forEach((item) => {
//     // item 是一个函数，调用它会返回一个 Promise，该 Promise 解析为模块的导出
//     item().then((mod) => {
//         let obj = {
//             path: '/' + mod.default.name,
//             element: mod.default
//         }
//         menuFileList.push(obj)
//         // 在这里，你可以进一步处理组件
//     }).catch((err) => {
//         console.error('Failed to load component', path, err);
//     });
// })
// console.log('menuFileList', menuFileList);
// ``````````````````````````````````````````````````````````````````````````````````````````````````````````
// ``````````````````````````````````````````````````````````````````````````````````````````````````````````
import Page1 from '@/views/menuPage/Page1'
import Page2 from '@/views/menuPage/Page2'

let menuList = [
    {
        path: 'page1',
        element: <Page1 />,
    },
    {
        path: 'page2',
        element: <Page2 />,
    },
]
let showMenuList = [
    {
        name:'Page1',
        link:'/page1'
    },
    {
        name:'Page2',
        link:'/page2'
    },
]
export { menuList,showMenuList }